<?php
namespace app\index\model;
use think\Model;
use think\Db;
class Index extends Model
//命名空间
{
    public function index(){

    }
    public function lang(){
        $arry['login'] = array(
            'unlogin'  =>  '未登录',
            'denglu'  =>  '登录成功',
            'undenglu'  =>  '登录失败'
        );
        $arry['url']= array(
            'url1'  =>  'index/index',
            'ur2'  =>  '登录成功',
            'url3'  =>  '登录失败'
        );
        return $arry;
    }
    public function index_select_table($fil = '',$tb,$where = ''){
        return DB::table($tb)->field($fil)->where($where)->select();
    }
}
